import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../../services/http-client.service';
@Injectable()
export class YclwyzService {

	constructor(
		public httpClient: HttpClientService
	) { }
	//查询分页列表
	list(getBody) {
		return this.httpClient.get('/pms/v1/oneOnOneFundInfo/oneOnOneInfoList', getBody);
	}
	// 查询单个产品基础信息
	otoGetSingleProduct(nFundNo) {
		return this.httpClient.get('/pms/v1/oneOnOneFundInfo/basicInfo/' + nFundNo);
	}
	// 产品业务类型,修改(1)、续约(2)、终止(3)、开始运作(4)
	operationType(putBody, businessType) {
		delete putBody.sStatusZh;
		return this.httpClient.put('/pms/v1/oneOnOneFundInfo/oneOnOneBasicInfo?businessType=' + businessType, putBody);
	}
	// 判断产品审核状态,修改(1)、续约(2)、终止(3)、开始运作(4)
	checkProductStatus(nFundNo, sType) {
		return this.httpClient.get('/pms/v1/common/fundAudit/checkIsExit/' + nFundNo + '?sType=' + sType);
	}
	// 获取备案机构、受托人、托管人下拉框值
    getDictionary() {
        return this.httpClient.get('/pms/v1/common/dict/getStrustee?sFundType=3');
    }
}
